﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using KPIS.GERP.SECURITY.DAL;
using KPIS.GERP.SECURITY.MODEL;

namespace KPIS.GERP.SECURITY.BLL
{
    public class RoleBLL
    {
        private RoleDAL DAL = new RoleDAL();

        public RoleBLL()
        {

        }
        public DataTable LoadRoles(Nullable<int> Sequence, string System)
        {
            return DAL.LoadRoles(Sequence, System);
        }
        public void Insert(string RoleName, string System, string Remarks, int CreatedBy)
        {
            try
            {
                DAL.Insert(RoleName, System, Remarks, CreatedBy);
            }
            catch
            {
                throw;
            }
        }
        public void Update(int Sequence, string RoleName, string System, string Remarks, int UpdatedBy)
        {
            try
            {
                DAL.Update(Sequence, RoleName, System, Remarks, UpdatedBy);
            }
            catch
            {
                throw;
            }
        }
        public void Delete(int Sequence, int UpdatedBy)
        {
            try
            {
                DAL.Delete(Sequence, UpdatedBy);
            }
            catch
            {
                throw;
            }
        }
    }
}
